package com.jiyun.feign;

import com.jiyun.model.Consumer;
import com.jiyun.model.User;
import com.jiyun.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/22 11 00
 * */
@FeignClient(value = "day14Access")
public interface FeignUser {
    @RequestMapping("consumer/login")
    public ResultResopnse login(@RequestBody Consumer consumer);
    @GetMapping("consumer/findConsumerCid")
    public ResultResopnse findConsumerCid(@RequestParam("id") Integer id);

    @GetMapping("consumer/findConsumerRid")
    public ResultResopnse findConsumerRid(@RequestParam("id") Integer id);

    @GetMapping("consumer/findConsumerTid")
    public ResultResopnse findConsumerTid(@RequestParam("id") Integer id);

    @GetMapping("team/findTeamAll")
    public ResultResopnse findTeamAll();
    @GetMapping("team/findTeamName")
    public ResultResopnse findTeamName(@RequestParam("raceId")Integer raceId);
}
